package com.cxyd.modules.wms.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.cxyd.common.entity.WmsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存信息
 *
 * @author g_Cycle gengruyi01@163.com
 * @since 1.0.0 2023-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wms_stock")
public class StockEntity extends WmsBaseEntity {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long stockId;
    /**
     * 托盘条码
     */
    private String contNo;
    /**
     * 所在位置
     */
    private String curPosition;
    private String positionType;
    /**
     * 商品编号
     */
    private String spuNo;
    private BigDecimal spuSize;
    private String spuWeight;
    private String unitCode;
    private String unitName;
    /**
     * 商品名称
     */
    private String spuName;
    private String length;
    private String width;
    private String height;
    /**
     * 库存量
     */
    private BigDecimal stockQty;
    /**
     * 预分配量
     */
    private BigDecimal lockedQty;
    /**
     * 库存状态(0-空闲 1-占用)
     */
    private Integer stockSt;
    /**
     * 冻结状态(0-可用 1-冻结)
     */
    private Integer lockSt;
    /**
     * 更新用户
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;
    /**
     * 更新日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;
    /**
     * 备注
     */
    private String comments;

    private String reelId;

    private String contLocateNo;
    /**
     * 库存来源（小庫-綫邊庫&大庫-原料庫）
     */
    private String stockType;
}